A Faster FPTAS for #Knapsack

نویسندگان

  • Pawel Gawrychowski
  • Liran Markin
  • Oren Weimann
چکیده

Given a set W = {w1, . . . , wn} of non-negative integer weights and an integer C, the #Knapsack problem asks to count the number of distinct subsets of W whose total weight is at most C. In the more general integer version of the problem, the subsets are multisets. That is, we are also given a set {u1, . . . , un} and we are allowed to take up to ui items of weight wi. We present a deterministic FPTAS for #Knapsack running in O(n2.5ε−1.5 log(nε−1) log(nε)) time. The previous best deterministic algorithm [FOCS 2011] runs in O(n3ε−1 log(nε−1)) time (see also [ESA 2014] for a logarithmic factor improvement). The previous best randomized algorithm [STOC 2003] runs in O(n √ log(nε−1) + ε−2n2) time. Therefore, in the natural setting of constant ε, we close the gap between the Õ(n) randomized algorithm and the Õ(n) deterministic algorithm. For the integer version with U = maxi {ui}, we present a deterministic FPTAS running in O(n2.5ε−1.5 log(nε−1 logU) log(nε) log U) time. The previous best deterministic algorithm [APPROX 2016] runs in O(n3ε−1 log(nε−1 logU) log U) time.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Faster FPTAS for the Unbounded Knapsack Problem

The Unbounded Knapsack Problem (UKP) is a well-known variant of the famous 0-1 Knapsack Problem (0-1 KP). In contrast to 0-1 KP, an arbitrary number of copies of every item can be taken in UKP. Since UKP is NP-hard, fully polynomial time approximation schemes (FPTAS) are of great interest. Such algorithms find a solution arbitrarily close to the optimum OPT(I), i.e. of value at least (1− ε)OPT(...

متن کامل

An FPTAS for the parametric knapsack problem

In this paper, we investigate the parametric knapsack problem, in which the item profits are affine functions depending on a real-valued parameter. The aim is to provide a solution for all values of the parameter. It is well-known that any exact algorithm for the problemmay need to output an exponential number of knapsack solutions. We present a fully polynomial-time approximation scheme (FPTAS...

متن کامل

A note on "Approximation schemes for a subclass of subset selection problems", and a faster FPTAS for the Minimum Knapsack Problem

Pruhs and Woeginger [10] prove the existence of FPTAS’s for a general class of minimization and maximization subset selection problems. Without losing generality from the original framework, we prove how better asymptotic worst-case running times can be achieved if a ρ-approximation algorithm is available, and in particular we obtain matching running times between maximization and minimization ...

متن کامل

A Practical Efficient Fptas for the 0-1 Multi-objective Knapsack Problem

In the present work, we are interested in the practical behavior of a new fptas to solve the approximation version of the 0-1 multiobjective knapsack problem. Nevertheless, our methodology focuses on very general techniques (such as dominance relations in dynamic programming) and thus may be applicable in the implementation of fptas for other problems as well. Extensive numerical experiments on...

متن کامل

An FPTAS for the Knapsack Problem with Parametric Weights

In this paper, we investigate the parametric weight knapsack problem, in which the item weights are affine functions of the formwi(λ) = ai + λ ·bi for i ∈ {1, . . . ,n} depending on a real-valued parameter λ. The aim is to provide a solution for all values of the parameter. It is well-known that any exact algorithm for the problem may need to output an exponential number of knapsack solutions. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1802.05791  شماره 

صفحات  -

تاریخ انتشار 2018